<?php
require_once $_SESSION["app_root"]."config/app.config.php";
class UserBLL
{
	public function AuthenticateUser($Email, $Password){
		$userdao = new UserDAO();
		$user = $userdao ->Authenticate($Email, $Password);
		if($user){
			$_SESSION['SessionUser'] = $user;
		}else{
			if(isset($_SESSION['SessionUser'])){
				unset($_SESSION['SessionUser']);
			}
		}
	}
	
	public function GetByID($ID){
		$userdao = new UserDAO();
		return $userdao ->GetByID($ID);
	}
}
?>